﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AttributeDemo.CustomAttribute
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
    public class BrithdayAttribute: AbstratValidateAttribute
    {
        public override bool Validate(object value)
        {      
            var now = DateTime.Now;
            return now.CompareTo(value) > 0;
        }
    }
}
